package cn.edu.dgut.sai.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.DispatcherServlet;

/**
 * 企业级软件开发-实训课程：Spring Boot 2.x
 *
 * @author 黎志雄
 * 2019-9-17
 */
@Configuration
public class DispatcherServletConfiguration {

    /**
     * Spring Mvc 主控制器Servlet
     *
     * @return {@link DispatcherServlet}
     */
    @Bean
    DispatcherServlet dispatcherServlet() {
        return new DispatcherServlet();
    }

}
